<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>左右</title>
    <style>
        body {
            margin: 0;
            padding: 0;
        }

        #box {
            position: fixed;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
        }

        #left {
            position: absolute;
            width: 15%;
            height: 100%;
            background-color: #66ff66;
        }

        #right {
            position: absolute;
            left: 15%;
            width: 85%;
            height: 100%;
        }

        #right .body {
            height: 80%;
            background-color: aqua;
        }

        #right .footer {
            height: 20%;
            background-color: coral;
        }
    </style>
</head>
<body>
<div id="box">
    <div id="left">

    </div>
    <div id="right">
        <div class="body">

        </div>
        <div class="footer">

        </div>
    </div>
</div>
</body>
</html>
